home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / dviware / dvibook / Dvitodvi / Makefile < prev   
Makefile  |  1994-03-18  |  10KB  |  357 lines

  1. # Makefile generated by imake - do not edit!
  2. # $XConsortium: imake.c,v 1.65 91/07/25 17:50:17 rws Exp $
  3. #
  4. # The cpp used on this machine replaces all newlines and multiple tabs and
  5. # spaces in a macro expansion with a single space.  Imake tries to compensate
  6. # for this, but is not always successful.
  7. #
  8.  
  9. # -------------------------------------------------------------------------
  10. # Makefile generated from "Imake.tmpl" and <Imakefile>
  11. # $XConsortium: Imake.tmpl,v 1.139 91/09/16 08:52:48 rws Exp $
  12. #
  13. # Platform-specific parameters may be set in the appropriate <vendor>.cf
  14. # configuration files.  Site-specific parameters should be set in the file
  15. # site.def.  Full rebuilds are recommended if any parameters are changed.
  16. #
  17. # If your C preprocessor does not define any unique symbols, you will need
  18. # to set BOOTSTRAPCFLAGS when rebuilding imake (usually when doing
  19. # "make World" the first time).
  20. #
  21.  
  22. # -------------------------------------------------------------------------
  23. # site-specific configuration parameters that need to come before
  24. # the platform-specific parameters - edit site.def to change
  25.  
  26. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  27.  
  28. # -------------------------------------------------------------------------
  29. # platform-specific configuration parameters - edit sun.cf to change
  30.  
  31. # platform:  $XConsortium: sun.cf,v 1.69 91/09/09 18:23:59 rws Exp $
  32.  
  33. # operating system:  SunOS 4.1.1
  34.  
  35. # $XConsortium: sunLib.rules,v 1.6 91/03/24 17:55:58 rws Exp $
  36.  
  37. # -------------------------------------------------------------------------
  38. # site-specific configuration parameters that go after
  39. # the platform-specific parameters - edit site.def to change
  40.  
  41. # site:  $XConsortium: site.def,v 1.2 91/07/30 20:26:44 rws Exp $
  42.  
  43.             SHELL = /bin/sh
  44.  
  45.               TOP = .
  46.       CURRENT_DIR = .
  47.  
  48.                AR = ar clq
  49.   BOOTSTRAPCFLAGS =
  50.                CC = cc
  51.                AS = as
  52.  
  53.          COMPRESS = compress
  54.               CPP = /lib/cpp $(STD_CPP_DEFINES)
  55.     PREPROCESSCMD = cc -E $(STD_CPP_DEFINES)
  56.           INSTALL = /usr/local/bin/install
  57.                LD = ld
  58.              LINT = lint
  59.       LINTLIBFLAG = -C
  60.          LINTOPTS = -axz
  61.                LN = ln -s
  62.              MAKE = make
  63.                MV = mv
  64.                CP = cp
  65.  
  66.            RANLIB = ranlib
  67.   RANLIBINSTFLAGS =
  68.  
  69.                RM = rm -f
  70.             TROFF = psroff
  71.          MSMACROS = -ms
  72.               TBL = tbl
  73.               EQN = eqn
  74.      STD_INCLUDES =
  75.   STD_CPP_DEFINES =
  76.       STD_DEFINES =
  77.  EXTRA_LOAD_FLAGS =
  78.   EXTRA_LIBRARIES =
  79.              TAGS = ctags
  80.  
  81.     SHAREDCODEDEF = -DSHAREDCODE
  82.          SHLIBDEF = -DSUNSHLIB
  83.  
  84.     PROTO_DEFINES =
  85.  
  86.      INSTPGMFLAGS = -s
  87.  
  88.      INSTBINFLAGS = -m 0755
  89.      INSTUIDFLAGS = -m 4755
  90.      INSTLIBFLAGS = -m 0644
  91.      INSTINCFLAGS = -m 0444
  92.      INSTMANFLAGS = -m 0444
  93.      INSTDATFLAGS = -m 0444
  94.     INSTKMEMFLAGS = -m 4755
  95.  
  96.      TOP_INCLUDES = -I$(INCROOT)
  97.  
  98.       CDEBUGFLAGS = -O
  99.         CCOPTIONS = -pipe -temp=.
  100.  
  101.       ALLINCLUDES = $(INCLUDES) $(EXTRA_INCLUDES) $(TOP_INCLUDES) $(STD_INCLUDES)
  102.        ALLDEFINES = $(ALLINCLUDES) $(STD_DEFINES) $(EXTRA_DEFINES) $(PROTO_DEFINES) $(DEFINES)
  103.            CFLAGS = $(CDEBUGFLAGS) $(CCOPTIONS) $(ALLDEFINES)
  104.         LINTFLAGS = $(LINTOPTS) -DLINT $(ALLDEFINES)
  105.  
  106.            LDLIBS = $(SYS_LIBRARIES) $(EXTRA_LIBRARIES)
  107.  
  108.         LDOPTIONS = $(CDEBUGFLAGS) $(CCOPTIONS) $(LOCAL_LDFLAGS) -L$(USRLIBDIR)
  109.  
  110.    LDCOMBINEFLAGS = -X -r
  111.       DEPENDFLAGS =
  112.  
  113.         MACROFILE = sun.cf
  114.            RM_CMD = $(RM) *.CKP *.ln *.BAK *.bak *.o core errs ,* *~ *.a .emacs_* tags TAGS make.log MakeOut
  115.  
  116.     IMAKE_DEFINES =
  117.  
  118.          IRULESRC = $(CONFIGDIR)
  119.         IMAKE_CMD = $(IMAKE) -DUseInstalled -I$(IRULESRC) $(IMAKE_DEFINES)
  120.  
  121.      ICONFIGFILES = $(IRULESRC)/Imake.tmpl $(IRULESRC)/Imake.rules \
  122.             $(IRULESRC)/Project.tmpl $(IRULESRC)/site.def \
  123.             $(IRULESRC)/$(MACROFILE) $(EXTRA_ICONFIGFILES)
  124.  
  125. # -------------------------------------------------------------------------
  126. # X Window System Build Parameters
  127. # $XConsortium: Project.tmpl,v 1.138 91/09/10 09:02:12 rws Exp $
  128.  
  129. # -------------------------------------------------------------------------
  130. # X Window System make variables; this need to be coordinated with rules
  131.  
  132.           PATHSEP = /
  133.         USRLIBDIR = /usr/local/lib/X11R5
  134.            BINDIR = /usr/local/bin/X11R5
  135.           INCROOT = /usr/local/share/X11R5/include
  136.      BUILDINCROOT = $(TOP)
  137.       BUILDINCDIR = $(BUILDINCROOT)/X11
  138.       BUILDINCTOP = ..
  139.            INCDIR = $(INCROOT)/X11
  140.            ADMDIR = /usr/adm
  141.            LIBDIR = /usr/local/lib/X11R5
  142.         CONFIGDIR = $(LIBDIR)/config
  143.        LINTLIBDIR = $(USRLIBDIR)/lint
  144.  
  145.           FONTDIR = $(LIBDIR)/fonts
  146.          XINITDIR = $(LIBDIR)/xinit
  147.            XDMDIR = $(LIBDIR)/xdm
  148.            TWMDIR = $(LIBDIR)/twm
  149.           MANPATH = /usr/local/share/man
  150.     MANSOURCEPATH = $(MANPATH)/man
  151.         MANSUFFIX = n
  152.      LIBMANSUFFIX = 3
  153.            MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)
  154.         LIBMANDIR = $(MANSOURCEPATH)$(LIBMANSUFFIX)
  155.            NLSDIR = $(LIBDIR)/nls
  156.         PEXAPIDIR = $(LIBDIR)/PEX
  157.       XAPPLOADDIR = $(LIBDIR)/app-defaults
  158.        FONTCFLAGS = -t
  159.  
  160.      INSTAPPFLAGS = $(INSTDATFLAGS)
  161.  
  162.             IMAKE = imake
  163.            DEPEND = makedepend
  164.               RGB = rgb
  165.  
  166.             FONTC = bdftopcf
  167.  
  168.         MKFONTDIR = mkfontdir
  169.         MKDIRHIER = /bin/sh $(BINDIR)/mkdirhier
  170.  
  171.         CONFIGSRC = $(TOP)/config
  172.        DOCUTILSRC = $(TOP)/doc/util
  173.         CLIENTSRC = $(TOP)/clients
  174.           DEMOSRC = $(TOP)/demos
  175.            LIBSRC = $(TOP)/lib
  176.           FONTSRC = $(TOP)/fonts
  177.        INCLUDESRC = $(TOP)/X11
  178.         SERVERSRC = $(TOP)/server
  179.           UTILSRC = $(TOP)/util
  180.         SCRIPTSRC = $(UTILSRC)/scripts
  181.        EXAMPLESRC = $(TOP)/examples
  182.        CONTRIBSRC = $(TOP)/../contrib
  183.            DOCSRC = $(TOP)/doc
  184.            RGBSRC = $(TOP)/rgb
  185.         DEPENDSRC = $(UTILSRC)/makedepend
  186.          IMAKESRC = $(CONFIGSRC)
  187.          XAUTHSRC = $(LIBSRC)/Xau
  188.           XLIBSRC = $(LIBSRC)/X
  189.            XMUSRC = $(LIBSRC)/Xmu
  190.        TOOLKITSRC = $(LIBSRC)/Xt
  191.        AWIDGETSRC = $(LIBSRC)/Xaw
  192.        OLDXLIBSRC = $(LIBSRC)/oldX
  193.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  194.       BDFTOSNFSRC = $(FONTSRC)/bdftosnf
  195.       BDFTOSNFSRC = $(FONTSRC)/clients/bdftosnf
  196.       BDFTOPCFSRC = $(FONTSRC)/clients/bdftopcf
  197.      MKFONTDIRSRC = $(FONTSRC)/clients/mkfontdir
  198.          FSLIBSRC = $(FONTSRC)/lib/fs
  199.     FONTSERVERSRC = $(FONTSRC)/server
  200.      EXTENSIONSRC = $(TOP)/extensions
  201.          XILIBSRC = $(EXTENSIONSRC)/lib/xinput
  202.       PHIGSLIBSRC = $(EXTENSIONSRC)/lib/PEX
  203.  
  204. # $XConsortium: sunLib.tmpl,v 1.11 91/07/31 11:32:08 rws Exp $
  205.  
  206. SHLIBLDFLAGS = -assert pure-text
  207. PICFLAGS = -pic
  208.  
  209.   DEPEXTENSIONLIB =
  210.      EXTENSIONLIB = -lXext
  211.  
  212.           DEPXLIB = $(DEPEXTENSIONLIB)
  213.              XLIB = $(EXTENSIONLIB) -lX11
  214.  
  215.         DEPXMULIB = $(USRLIBDIR)/libXmu.sa.$(SOXMUREV)
  216.            XMULIB = -lXmu
  217.  
  218.        DEPOLDXLIB =
  219.           OLDXLIB = -loldX
  220.  
  221.       DEPXTOOLLIB = $(USRLIBDIR)/libXt.sa.$(SOXTREV)
  222.          XTOOLLIB = -lXt
  223.  
  224.         DEPXAWLIB = $(USRLIBDIR)/libXaw.sa.$(SOXAWREV)
  225.            XAWLIB = -lXaw
  226.  
  227.         DEPXILIB =
  228.            XILIB = -lXi
  229.  
  230.         SOXLIBREV = 4.10
  231.           SOXTREV = 4.10
  232.          SOXAWREV = 5.0
  233.         SOOLDXREV = 4.10
  234.          SOXMUREV = 4.10
  235.         SOXEXTREV = 4.10
  236.       SOXINPUTREV = 4.10
  237.  
  238.       DEPXAUTHLIB = $(USRLIBDIR)/libXau.a
  239.          XAUTHLIB =  -lXau
  240.       DEPXDMCPLIB = $(USRLIBDIR)/libXdmcp.a
  241.          XDMCPLIB =  -lXdmcp
  242.  
  243.         DEPPHIGSLIB = $(USRLIBDIR)/libphigs.a
  244.            PHIGSLIB =  -lphigs
  245.  
  246.        DEPXBSDLIB = $(USRLIBDIR)/libXbsd.a
  247.           XBSDLIB =  -lXbsd
  248.  
  249.  LINTEXTENSIONLIB = $(LINTLIBDIR)/llib-lXext.ln
  250.          LINTXLIB = $(LINTLIBDIR)/llib-lX11.ln
  251.           LINTXMU = $(LINTLIBDIR)/llib-lXmu.ln
  252.         LINTXTOOL = $(LINTLIBDIR)/llib-lXt.ln
  253.           LINTXAW = $(LINTLIBDIR)/llib-lXaw.ln
  254.            LINTXI = $(LINTLIBDIR)/llib-lXi.ln
  255.         LINTPHIGS = $(LINTLIBDIR)/llib-lphigs.ln
  256.  
  257.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  258.  
  259.          DEPLIBS1 = $(DEPLIBS)
  260.          DEPLIBS2 = $(DEPLIBS)
  261.          DEPLIBS3 = $(DEPLIBS)
  262.  
  263. # -------------------------------------------------------------------------
  264. # Imake rules for building libraries, programs, scripts, and data files
  265. # rules:  $XConsortium: Imake.rules,v 1.123 91/09/16 20:12:16 rws Exp $
  266.  
  267. # -------------------------------------------------------------------------
  268. # start of Imakefile
  269.  
  270. OBJS    =dvitodvi.o
  271. SRCS    =dvitodvi.c
  272.  
  273.       LIBTEXROOT= ../
  274.       LIBTEXSRC    = ../libtex
  275.          LIBTEX    = $(LIBTEXSRC)/libtex.a
  276.       DEPLIBTEX    = $(LIBTEX)
  277.         DEPLIBS = $(DEPLIBTEX) $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  278. LOCAL_LIBRARIES = $(LIBTEX)
  279.  
  280.         DEFINES = -I$(LIBTEXROOT)
  281.  
  282. FILES    =Imakefile dvitodvi.man Makefile.raw $(SRCS)
  283.  
  284. all: dvitodvi
  285.  
  286. dvitodvi: $(OBJS) $(DEPLIBS)
  287.     $(RM) $@
  288.     $(CC) -o $@ $(OBJS) $(LDOPTIONS) $(LOCAL_LIBRARIES) $(LDLIBS) $(SYSLIBS) $(EXTRA_LOAD_FLAGS)
  289.  
  290. clean::
  291.     $(RM) dvitodvi
  292.  
  293. install:: dvitodvi
  294.     @if [ -d $(DESTDIR) $(BINDIR) ]; then set +x; \
  295.     else (set -x; $(MKDIRHIER) $(DESTDIR) $(BINDIR)); fi
  296.     $(INSTALL) -c $(INSTPGMFLAGS)  dvitodvi $(DESTDIR) $(BINDIR)
  297.  
  298. install.man:: dvitodvi.man
  299.     @if [ -d $(DESTDIR)$(MANDIR) ]; then set +x; \
  300.     else (set -x; $(MKDIRHIER) $(DESTDIR)$(MANDIR)); fi
  301.     $(INSTALL) -c $(INSTMANFLAGS) dvitodvi.man $(DESTDIR)$(MANDIR)/dvitodvi.$(MANSUFFIX)
  302.  
  303. depend::
  304.     $(DEPEND) $(DEPENDFLAGS) -s "# DO NOT DELETE" -- $(ALLDEFINES) -- $(SRCS)
  305.  
  306. tags::
  307.     $(TAGS) -w *.[ch]
  308.     $(TAGS) -xw *.[ch] > TAGS
  309.  
  310. tar:
  311.     cd ../..;\
  312.     for file in $(FILES); \
  313.     do \
  314.       tar rf $(TARFILE) $(PRODUCT)/Dvitodvi/$$file; \
  315.     done
  316.  
  317. # -------------------------------------------------------------------------
  318. # common rules for all Makefiles - do not edit
  319.  
  320. emptyrule::
  321.  
  322. clean::
  323.     $(RM_CMD) "#"*
  324.  
  325. Makefile::
  326.     -@if [ -f Makefile ]; then set -x; \
  327.     $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
  328.     else exit 0; fi
  329.     $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
  330.  
  331. tags::
  332.     $(TAGS) -w *.[ch]
  333.     $(TAGS) -xw *.[ch] > TAGS
  334.  
  335. saber:
  336.     # load $(ALLDEFINES) $(SRCS)
  337.  
  338. osaber:
  339.     # load $(ALLDEFINES) $(OBJS)
  340.  
  341. # -------------------------------------------------------------------------
  342. # empty rules for directories that do not have SUBDIRS - do not edit
  343.  
  344. install::
  345.     @echo "install in $(CURRENT_DIR) done"
  346.  
  347. install.man::
  348.     @echo "install.man in $(CURRENT_DIR) done"
  349.  
  350. Makefiles::
  351.  
  352. includes::
  353.  
  354. # -------------------------------------------------------------------------
  355. # dependencies generated by makedepend
  356.  
  357.